package com.ph.shopping.facade.mapper;

import org.apache.ibatis.annotations.Param;

import com.ph.shopping.common.core.base.BaseMapper;
import com.ph.shopping.facade.pay.entity.MemberDrawcashRecord;
import com.ph.shopping.facade.pay.vo.CertificatesAuthVo;
import com.ph.shopping.facade.pay.vo.MemberByCashVo;
import com.ph.shopping.facade.pay.vo.SmsCodeVo;
/**
 * 
 * @项目：phshopping-service-pay
 *
 * @描述：会员提现记录Mapper
 *
 * @作者： Mr.Chang
 *
 * @创建时间：2017年3月23日
 *
 * @Copyright @2017 by Mr.Chang
 */
public interface MemberDrawcashRecordMapper  extends BaseMapper<MemberDrawcashRecord>{
	
	/**
	 * 根据id获取会员详情
	 * @param memberId
	 * @return
	 * @author Mr.Chang
	 */
	public MemberByCashVo getMemberInfo(@Param("memberId")Long memberId);
	
	/**
	 * 查询会员当天的提现积分总和
	 * @param memberId
	 * @return
	 * @author Mr.Chang
	 * 
	 */
	public Long getSumScoreThisDay(@Param("memberId")Long memberId);
	
	/**
	 * 查询会员认证信息
	 * @param idCard
	 * @return
	 * @author Mr.Chang
	 * 
	 */
	public CertificatesAuthVo getCretificateAuthInfo(@Param("idCard")String idCard);
	
	/**
	 * 根据手机号查询验证码
	 * @param phone
	 * @return
	 * @author Mr.Chang
	 * 
	 */
	public SmsCodeVo getSmsCodeByPhone(@Param("phone")String phone,@Param("sendType")String sendType);
	
	/**
	 * 根据订单号查询会员提现记录
	 * @param orderNo
	 * @return
	 * @author Mr.Chang
	 */
	public MemberDrawcashRecord getMemberDrawcashRecord(@Param("orderNum")String orderNum);
	
}
